const { ccclass, property } = cc._decorator;

@ccclass
export default class ScoreScript extends cc.Component {

	private score = 0

	onLoad() {

	}

	start() {

	}

	addScore() {
		this.score += 1;
		let label = this.getComponent(cc.Label)
		label.string = this.score.toString()
	}

	// update (dt) {}

}

